#if !defined(EXTERN_H)
#define EXTERN_H
#pragma once

#include "CObject.h"
#include "csprite.h"
#include "cspritebase.h"
#include "CCreature.h"

extern short Decorative[201][201];
extern bool GCMap[201][201];
extern short Map[201][201];
extern bool BlockMap[201][201];
extern short RoomMap[100][100];
extern CObject *pObjectMap[201][201];
extern int plX, plY, WayEnd, MapX, MapY;
extern bool View;
extern bool ViewMap[22][22];
extern SDL_Surface *screen;
extern CSpriteBase PeasantSpr[4], SwordsmanSpr[4], ImpSpr, SpiderSpr, TrollSpr, OgreSpr, SkeletonSpr, WarlockSpr, FrameSpr, GoldSpr, StrikeSpr[4], BloodSpr[2], FurnitureSpr[2];
extern CSprite PeasantPicture[4], SwordsmanPicture[4], ImpPicture, SpiderPicture, TrollPicture, OgrePicture, SkeletonPicture, WarlockPicture, FramePicture, GoldPicture, StrikePicture[4], BloodPicture[2], FurniturePicture[2];
extern int LenghtToScreenMiddleX, LenghtToScreenMiddleY;
struct cell
{
	int X;
	int Y;
} extern BorderDoors[100], Way[200];
struct gold
{
	int X;
	int Y;
} extern GoldList[1];
extern int BDAmount;
extern CCreature *pSelectedCreature;

extern bool findpath(int startx, int starty, int endx, int endy);

#endif